<template>
  <div id="app">
    <Header />
    <!-- 组件渲染 -->
    <router-view />
    <Footer v-show="$route.meta.show"/>
  </div>
</template>

<script>
import Header from './components/Header'
import Footer from './components/Footer'
export default {
  name: 'App',
  components: {
    Header,
    Footer
  },
  mounted(){
    this.$store.dispatch("getGoryList");
  }
}
</script>

<style lang="less" scoped>

</style>